package com.yunji.cabinet.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class UpgradeTaskVO {

    @ApiModelProperty("任务编码")
    @TableId
    private String taskCode;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("文件ID")
    private Long fileId;

    @ApiModelProperty("芯片类型")
    private String chipType;

    @ApiModelProperty("软件版本")
    private String version;

    @ApiModelProperty("任务状态 0-待开始 1-已就绪 2-进行中 3-已完成 4-已取消")
    private Integer taskStatus;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("详情集合")
    private List<UpgradeInfoVO> infoList;

    @ApiModelProperty("总设备数")
    private Integer facilityNums;

    @ApiModelProperty("等待设备数")
    private Integer waitFacility;

    @ApiModelProperty("取消设备数")
    private Integer cancelFacility;

    @ApiModelProperty("已完成设备数")
    private Integer completeFacility;

}
